/**
* GdkTexture:width:
*
- * The width of the texture.
+ * The width of the texture, in pixels.
*/
properties[PROP_WIDTH] =
g_param_spec_int ("width",
/**
* GdkTexture:height:
*
- * The height of the texture.
+ * The height of the texture, in pixels.
*/
properties[PROP_HEIGHT] =
g_param_spec_int ("height",
* gdk_texture_new_for_pixbuf:
* @pixbuf: a #GdkPixbuf
*
- * Creates a new texture object representing the GdkPixbuf.
+ * Creates a new texture object representing the #GdkPixbuf.
*
* Returns: a new #GdkTexture
*/
* @resource_path: the path of the resource file
*
* Creates a new texture by loading an image from a resource.
- * The file format is detected automatically.
+ * The file format is detected automatically, and can be any
+ * format that is supported by the gdk-pixbuf library, such as
+ * JPEG or PNG.
*
* It is a fatal error if @resource_path does not specify a valid
* image resource and the program will abort if that happens.
* @file: #GFile to load
* @error: Return location for an error
*
- * Creates a new texture by loading an image from a file. The file format is
- * detected automatically. If %NULL is returned, then @error will be set.
+ * Creates a new texture by loading an image from a file.
+ * The file format is detected automatically, and can be any
+ * format that is supported by the gdk-pixbuf library, such as
+ * JPEG or PNG.
+ *
+ * If %NULL is returned, then @error will be set.
*
* Return value: A newly-created #GdkTexture or %NULL if an error occurred.
**/
* gdk_texture_get_width:
* @texture: a #GdkTexture
*
- * Returns the width of @texture.
+ * Returns the width of @texture, in pixels.
*
* Returns: the width of the #GdkTexture
*/
* gdk_texture_get_height:
* @texture: a #GdkTexture
*
- * Returns the height of the @texture.
+ * Returns the height of the @texture, in pixels.
*
* Returns: the height of the #GdkTexture
*/
return result;
}
-